#include <stdio.h>
#include "structs.h"
void GhiFile(OUTPUT out) { 
	int i;
	FILE *f;
	//mo file
	f = fopen("Ketqua.txt","wt");
	//ghi mang dinh thoi
	for(i=0;i<out.ns;i++)
	{
		fprintf(f,"%d ",out.sche[i]);
	}
	fprintf(f,"\n");
	
	for(i=0;i<out.nw;i++)
	{
		fprintf(f,"%d ",out.wtime[i]);
		fprintf(f,"\n");
	}
	fprintf(f,"\n");
	fprintf(f,"%.3f ",out.avgtime);

}
